import request from "@/plugin/axios";

export function fetchList(query) {
  return request({
    url: "/callCenter/get",
    method: "get",
    params: query,
    loading: {
      type: "nprogress",
      interval: 500
    }
  });
}

export function callTimeLog(query) {
  return request({
    url: "/callCenter/callTimeLog",
    method: "get",
    params: query,
    loading: {
      type: "nprogress",
      interval: 500
    }
  });
}

export function putObj(obj) {
  return request({
    url: "/callCenter/update",
    method: "put",
    data: obj,
    loading: {
      type: "nprogress",
      interval: 500
    }
  });
}

export function callPhone(query) {
  return request({
    url: "/callCenter/call",
    method: "get",
    params: query
  });
}
